package com.hdoit.ares.web.official.modelconfig;
import com.hdoit.ares.web.official.providers.AnswerStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年01月05日 12:01:32
 * @comment
 */
public class OnlineApplyforConfig extends ModelMetadataAttributeConfiguration{
    public OnlineApplyforConfig(){
        this.setProperty("userName")
            .hasAttribute(new DisplayNameAttribute("用户名"));

        this.setProperty("phone")
            .hasAttribute(new DisplayNameAttribute("手机号码"));

        this.setProperty("region")
            .hasAttribute(new DisplayNameAttribute("地区"));

        this.setProperty("applyforDate")
            .hasAttribute(new DisplayNameAttribute("申请时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("answerState")
            .hasAttribute(new DisplayNameAttribute("回访状态"))
            .hasAttribute(new DropDownListAttribute(new AnswerStateProvider()));

        this.setProperty("answerTime")
            .hasAttribute(new DisplayNameAttribute("回返时间"));

        this.setProperty("comments")
            .hasAttribute(new DisplayNameAttribute("申请内容"));
        
        this.setProperty("remark")
        	.hasAttribute(new DisplayNameAttribute("备注"));
        
        this.setProperty("modifyDate")
    		.hasAttribute(new DisplayNameAttribute("修改时间"));
        
        this.setProperty("modifyUserName")
    		.hasAttribute(new DisplayNameAttribute("修改人"));

    }
}
